package com.nulstudio.emotion.text.mapper;

import com.nulstudio.emotion.text.entity.NulTextEntry;
import org.springframework.lang.NonNull;
import org.springframework.lang.Nullable;

import java.util.List;

public interface TextRecognitionMapper {
    @NonNull
    List<NulTextEntry> getHistories(int uid, @NonNull String filter);

    @Nullable
    Integer selectHistoryUidById(int id);

    int insertUidHistoriesMap(int uid, @NonNull List<NulTextEntry> textEntries);

    int insertHistory(@NonNull NulTextEntry textEntry);

    int deleteHistory(int id);
}
